<?php
   	include_once "../funciones.php";
    $con=conectar();
   try {

			$sql="INSERT INTO ESCUELAS (DEPORTE, DESCRIPCION, CIF) VALUE  (".$_POST[1].", ".$_POST[2].",".$_POST[3].")";
			$stmt = $con->prepare($sql);
			$stmt->execute();
			$stmt = $con->prepare("commit");
			$stmt->execute();
		
		 
	}catch(PDOException $e ) {
			echo "error: ".$e->GetMessage();
            $con->rollBack();
            header( 'Location: insertarEscuelas.php?exito=2');
	}

   header( 'Location: insertarEscuelas.php?exito=1');

   ?>